/*    */ package handling.login.handler;
/*    */ 
/*    */ import client.MapleClient;
/*    */ import client.MapleEnumClass;
/*    */ import tools.data.input.LittleEndianAccessor;
/*    */ import tools.packet.LoginPacket;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class SetGenderHandler
/*    */ {
/*    */   public static void handlePacket(LittleEndianAccessor slea, MapleClient c) {
/* 18 */     byte gender = slea.readByte();
/* 19 */     String username = slea.readMapleAsciiString();
/* 20 */     if (c.getAccountName().equals(username)) {
/* 21 */       c.setGender(gender);
/* 22 */       c.announce(LoginPacket.genderChanged(c));
/* 23 */       c.announce(LoginPacket.getLoginFailed(MapleEnumClass.AuthReply.GAME_PROTOCOL_INFO));
/*    */     } else {
/* 25 */       c.getSession().close();
/*    */     } 
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\handling\login\handler\SetGenderHandler.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */